﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my1="clr-namespace:SymulatorEthernetWPF.UserInterface.UIElements"
        xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" x:Class="SymulatorEthernetWPF.UserInterface.MainWindow" Title="Symulator Ethernet" Height="407" Width="620"
        Closing="WindowClosing" ResizeMode="CanResize" KeyDown="WindowKeyDown"
        Icon="/SymulatorEthernetWPF;component/UserInterface/Images/appIco.ico" Loaded="WindowLoaded" MinWidth="620" MinHeight="400">
    <Window.Resources>
        <LinearGradientBrush x:Key="ToolBarHorizontalBackground" EndPoint="0,1" StartPoint="0,0">
            <GradientStop Color="#FFFFFF" Offset="0"/>
            <GradientStop Color="#FFFBFF" Offset="0.5"/>
            <GradientStop Color="#F7F7F7" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="ToolBarToggleButtonVerticalBackground" EndPoint="1,0" StartPoint="0,0">
            <GradientStop Color="#ECECEC" Offset="0"/>
            <GradientStop Color="#DDDDDD" Offset="0.5"/>
            <GradientStop Color="#A0A0A0" Offset="1"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="ToolBarButtonHover" Color="#C2E0FF"/>
        <SolidColorBrush x:Key="ToolBarGripper" Color="#C6C3C6"/>
        <Style x:Key="ToolBarVerticalOverflowButtonStyle" TargetType="{x:Type ToggleButton}">
            <Setter Property="Background" Value="{StaticResource ToolBarToggleButtonVerticalBackground}"/>
            <Setter Property="MinHeight" Value="0"/>
            <Setter Property="MinWidth" Value="0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ToggleButton}">
                        <Border x:Name="Bd" Background="{TemplateBinding Background}" CornerRadius="0,0,3,3" SnapsToDevicePixels="true">
                            <Canvas HorizontalAlignment="Right" Height="6" Margin="2,7,2,2" SnapsToDevicePixels="true" VerticalAlignment="Bottom" Width="7">
                                <Path Data="M 1.5 1 L 1.5 6" Stroke="White"/>
                                <Path Data="M 0.5 0 L 0.5 5" Stroke="{TemplateBinding Foreground}"/>
                                <Path Data="M 3.5 0.5 L 7 3.5 L 4 6.5 Z" Fill="White"/>
                                <Path Data="M 3 -0.5 L 6 2.5 L 3 5.5 Z" Fill="{TemplateBinding Foreground}"/>
                            </Canvas>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
                            </Trigger>
                            <Trigger Property="IsKeyboardFocused" Value="true">
                                <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <LinearGradientBrush x:Key="ToolBarVerticalBackground" EndPoint="1,0" StartPoint="0,0">
            <GradientStop Color="#FFFFFF" Offset="0"/>
            <GradientStop Color="#FFFBFF" Offset="0.5"/>
            <GradientStop Color="#F7F7F7" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="ToolBarToggleButtonHorizontalBackground" EndPoint="0,1" StartPoint="0,0">
            <GradientStop Color="#ECECEC" Offset="0"/>
            <GradientStop Color="#DDDDDD" Offset="0.5"/>
            <GradientStop Color="#A0A0A0" Offset="1"/>
        </LinearGradientBrush>
        <Style x:Key="ToolBarHorizontalOverflowButtonStyle" TargetType="{x:Type ToggleButton}">
            <Setter Property="Background" Value="{StaticResource ToolBarToggleButtonHorizontalBackground}"/>
            <Setter Property="MinHeight" Value="0"/>
            <Setter Property="MinWidth" Value="0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ToggleButton}">
                        <Border x:Name="Bd" Background="{TemplateBinding Background}" CornerRadius="0,3,3,0" SnapsToDevicePixels="true">
                            <Canvas HorizontalAlignment="Right" Height="7" Margin="7,2,2,2" SnapsToDevicePixels="true" VerticalAlignment="Bottom" Width="6">
                                <Path Data="M 1 1.5 L 6 1.5" Stroke="White"/>
                                <Path Data="M 0 0.5 L 5 0.5" Stroke="{TemplateBinding Foreground}"/>
                                <Path Data="M 0.5 4 L 6.5 4 L 3.5 7 Z" Fill="White"/>
                                <Path Data="M -0.5 3 L 5.5 3 L 2.5 6 Z" Fill="{TemplateBinding Foreground}"/>
                            </Canvas>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
                            </Trigger>
                            <Trigger Property="IsKeyboardFocused" Value="true">
                                <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <SolidColorBrush x:Key="ToolBarMenuBorder" Color="#808080"/>
        <SolidColorBrush x:Key="ToolBarSubMenuBackground" Color="#FDFDFD"/>
        <Style x:Key="ToolBarThumbStyle" TargetType="{x:Type Thumb}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Thumb}">
                        <Border Background="Transparent" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
                            <Rectangle>
                                <Rectangle.Fill>
                                    <DrawingBrush TileMode="Tile" Viewbox="0,0,4,4" Viewport="0,0,4,4" ViewportUnits="Absolute" ViewboxUnits="Absolute">
                                        <DrawingBrush.Drawing>
                                            <DrawingGroup>
                                                <GeometryDrawing Brush="White" Geometry="M 1 1 L 1 3 L 3 3 L 3 1 z"/>
                                                <GeometryDrawing Brush="{StaticResource ToolBarGripper}" Geometry="M 0 0 L 0 2 L 2 2 L 2 0 z"/>
                                            </DrawingGroup>
                                        </DrawingBrush.Drawing>
                                    </DrawingBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter Property="Cursor" Value="SizeAll"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ToolBarStyle1" TargetType="{x:Type ToolBar}">
            <Setter Property="Background" Value="{StaticResource ToolBarHorizontalBackground}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ToolBar}">
                        <Grid x:Name="Grid" Margin="3,1,1,1" SnapsToDevicePixels="true">
                            <Grid x:Name="OverflowGrid" HorizontalAlignment="Right" Visibility="Collapsed">
                                <ToggleButton x:Name="OverflowButton" ClickMode="Press" FocusVisualStyle="{x:Null}" IsChecked="{Binding IsOverflowOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" IsEnabled="{TemplateBinding HasOverflowItems}" Style="{StaticResource ToolBarHorizontalOverflowButtonStyle}"/>
                                <Popup x:Name="OverflowPopup" AllowsTransparency="true" Focusable="false" IsOpen="{Binding IsOverflowOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom" StaysOpen="false">
                                    <Themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
                                        <Border BorderBrush="{StaticResource ToolBarMenuBorder}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackground}">
                                            <ToolBarOverflowPanel x:Name="PART_ToolBarOverflowPanel" KeyboardNavigation.DirectionalNavigation="Cycle" FocusVisualStyle="{x:Null}" Focusable="true" Margin="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle" WrapWidth="200"/>
                                        </Border>
                                    </Themes:SystemDropShadowChrome>
                                </Popup>
                            </Grid>
                            <Border x:Name="MainPanelBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3,3,3,3" Margin="0,0,11,0" Padding="{TemplateBinding Padding}">
                                <DockPanel KeyboardNavigation.TabIndex="1" KeyboardNavigation.TabNavigation="Local">
                                    <Thumb x:Name="ToolBarThumb" Margin="-3,-1,0,0" Padding="6,5,1,6" Style="{StaticResource ToolBarThumbStyle}" Width="10"  Visibility="Collapsed"/>
                                    <ContentPresenter x:Name="ToolBarHeader" ContentSource="Header" HorizontalAlignment="Center" Margin="4,0,4,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
                                    <ToolBarPanel x:Name="PART_ToolBarPanel" IsItemsHost="true" Margin="0,1,2,2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                </DockPanel>
                            </Border>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsOverflowOpen" Value="true">
                                <Setter Property="IsEnabled" TargetName="ToolBarThumb" Value="false"/>
                            </Trigger>
                            <Trigger Property="Header" Value="{x:Null}">
                                <Setter Property="Visibility" TargetName="ToolBarHeader" Value="Collapsed"/>
                            </Trigger>
                            <Trigger Property="ToolBarTray.IsLocked" Value="true">
                                <Setter Property="Visibility" TargetName="ToolBarThumb" Value="Collapsed"/>
                            </Trigger>
                            <Trigger Property="HasDropShadow" SourceName="OverflowPopup" Value="true">
                                <Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
                                <Setter Property="SnapsToDevicePixels" TargetName="Shdw" Value="true"/>
                                <Setter Property="Color" TargetName="Shdw" Value="#71000000"/>
                            </Trigger>
                            <Trigger Property="Orientation" Value="Vertical">
                                <Setter Property="Margin" TargetName="Grid" Value="1,3,1,1"/>
                                <Setter Property="Style" TargetName="OverflowButton" Value="{StaticResource ToolBarVerticalOverflowButtonStyle}"/>
                                <Setter Property="Height" TargetName="ToolBarThumb" Value="10"/>
                                <Setter Property="Width" TargetName="ToolBarThumb" Value="Auto"/>
                                <Setter Property="Margin" TargetName="ToolBarThumb" Value="-1,-3,0,0"/>
                                <Setter Property="Padding" TargetName="ToolBarThumb" Value="5,6,6,1"/>
                                <Setter Property="Margin" TargetName="ToolBarHeader" Value="0,0,0,4"/>
                                <Setter Property="Margin" TargetName="PART_ToolBarPanel" Value="1,0,2,2"/>
                                <Setter Property="DockPanel.Dock" TargetName="ToolBarThumb" Value="Top"/>
                                <Setter Property="DockPanel.Dock" TargetName="ToolBarHeader" Value="Top"/>
                                <Setter Property="HorizontalAlignment" TargetName="OverflowGrid" Value="Stretch"/>
                                <Setter Property="VerticalAlignment" TargetName="OverflowGrid" Value="Bottom"/>
                                <Setter Property="Placement" TargetName="OverflowPopup" Value="Right"/>
                                <Setter Property="Margin" TargetName="MainPanelBorder" Value="0,0,0,11"/>
                                <Setter Property="Background" Value="{StaticResource ToolBarVerticalBackground}"/>
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid AllowDrop="False">
        <Menu x:Name="mainWindowMenu" VerticalAlignment="Top" Height="23" Background="#F3F3F3">
            <MenuItem Header="Plik" RenderTransformOrigin="0.5,0.5">
                <MenuItem Header="Nowy" x:Name="newSimButton" Click="NewSimButtonClick">
                    <MenuItem.Icon>
                        <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/new_24x24.png" Width="16" Height="16" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Otwórz" Click="OpenSimClick">
                    <MenuItem.Icon>
                        <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/open_24x24.png" Width="16" Height="16" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Zapisz" Click="SaveSimClick">
                    <MenuItem.Icon>
                        <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/save_24x24.png" Width="16" Height="16" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Eksport" Click="ExportClick">
                    <MenuItem.Icon>
                        <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/export_24x24.png" Width="16" Height="16" />
                    </MenuItem.Icon>
                </MenuItem>
                <Separator />
                <MenuItem Header="Zakończ" x:Name="mainMenu_Zakoncz" Click="MainMenuZakonczClick">
                    <MenuItem.Icon>
                        <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/delete.png" Width="16" Height="16" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Edycja">
                <MenuItem Header="Cofnij" x:Name="mainMenu_Undo" Click="UndoButtonClick" IsEnabled="false">
                    <MenuItem.Icon>
                        <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/UndoInactive_24x24.png" Width="16"
                   Height="16" x:Name="mainMenu_undoIcon" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Powtórz" x:Name="mainMenu_Redo" Click="RedoButtonClick" IsEnabled="false">
                    <MenuItem.Icon>
                        <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/RedoInactive_24x24.png" Width="16"
                   Height="16" x:Name="mainMenu_redoIcon" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>

            <MenuItem Header="Opcje">
                
                <MenuItem Header="Pokaż dane urządzenia w statusie" x:Name="mainMenu_ShowDeviceStatus" IsCheckable="True" />
            </MenuItem>
            <MenuItem Header="Info" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
                FlowDirection="LeftToRight" RenderTransformOrigin="0.5,0.5">

                <MenuItem Header="O programie" x:Name="mainMenu_About" Click="MainMenuAboutClick">
                    <MenuItem.Icon>
                        <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/info_24x24.png" Width="16" Height="16" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
        </Menu>

        <ToolBarPanel Height="36" Margin="0,22,0,0" x:Name="toolBarPanel" VerticalAlignment="Top" Background="#F3F3F3" >

            <ToolBar Height="36" x:Name="mainToolBar" HorizontalContentAlignment="Center"
               ToolBarTray.IsLocked="true" Background="#F3F3F3" Style="{DynamicResource ToolBarStyle1}">

                <Button ToolTip="Nowy" x:Name="newSim" Click="NewSimButtonClick" MouseEnter="ButtonHover"
                MouseLeave="ButtonLeave">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/new_24x24.png" Width="24" Height="24"
                 Stretch="Fill" />
                </Button>
                <Button ToolTip="Otwórz" MouseEnter="ButtonHover" MouseLeave="ButtonLeave" x:Name="openSim"
                Click="OpenSimClick">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/open_24x24.png" Width="24" Height="24" />
                </Button>
                <Button ToolTip="Zapisz" MouseEnter="ButtonHover" MouseLeave="ButtonLeave" x:Name="saveSim"
                Click="SaveSimClick">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/save_24x24.png" Width="24" Height="24" />
                </Button>
                <Separator />
                <Button ToolTip="Cofnij" x:Name="undoButton" IsEnabled="False" Click="UndoButtonClick"
                MouseEnter="ButtonHover" MouseLeave="ButtonLeave">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/UndoInactive_24x24.png" Width="24"
                 Height="24" x:Name="toolbar_undoIcon" />
                </Button>
                <Button ToolTip="Powtórz" x:Name="redoButton" IsEnabled="False" Click="RedoButtonClick"
                MouseEnter="ButtonHover" MouseLeave="ButtonLeave">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/RedoInactive_24x24.png" Width="24"
                 Height="24" x:Name="toolbar_redoIcon" />
                </Button>
                <Separator />
                <Button ToolTip="Dodaj Host" x:Name="addHostButton" Click="AddHostButtonClick" MouseEnter="ButtonHover"
                MouseLeave="ButtonLeave">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/pcIm.png" Width="24" Height="24" />
                </Button>
                <Button ToolTip="Dodaj Hub" x:Name="addHubButton" Click="AddHubButtonClick" MouseEnter="ButtonHover"
                MouseLeave="ButtonLeave">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/hubIm.png" Width="24" Height="24" />
                </Button>
                <Button ToolTip="Dodaj Switch" x:Name="addSwitchButton" Click="AddSwitchButtonClick"
                MouseEnter="ButtonHover" MouseLeave="ButtonLeave">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/switchIm.png" Width="24" Height="24" />
                </Button>
                <Separator />

                <Button ToolTip="Start" x:Name="startSimButton" Click="StartSimButtonClick" MouseEnter="ButtonHover"
                MouseLeave="ButtonLeave">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/play_24x24.png" Width="24" Height="24" />
                </Button>
                <Button ToolTip="Wstrzymaj" x:Name="pauseSimButton" Click="PauseSimButtonClick" MouseEnter="ButtonHover"
                MouseLeave="ButtonLeave">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/pause_24x24.png" Width="24" Height="24" />
                </Button>
                <Button ToolTip="Zatrzymaj" x:Name="stopSimButton" Click="StopSimButtonClick" MouseEnter="ButtonHover"
                MouseLeave="ButtonLeave">
                    <Image Source="/SymulatorEthernetWPF;component/UserInterface/Images/stop_24x24.png" Width="24" Height="24" />
                </Button>
                <Separator />
            </ToolBar>

        </ToolBarPanel>
        <Grid Margin="0,58,0,26" x:Name="grid1">
            <Grid.RowDefinitions>
                <RowDefinition Height="195*" />
                <RowDefinition Height="auto" />
            </Grid.RowDefinitions>
            <my1:CustomScrollViewer x:Name="scrollViewer" HorizontalScrollBarVisibility="Visible"
                              VerticalScrollBarVisibility="Visible" MouseWheel="ScrollViewerMouseWheel"
                               BorderBrush="Black" BorderThickness="1" >
                
                <my1:CustomCanvas Height="0" x:Name="customCanvas" Width="0" Margin="0,0,0,0"
                          HorizontalAlignment="Left" VerticalAlignment="Top"/>
            </my1:CustomScrollViewer>

            <Border BorderThickness="0" Grid.Row="1" x:Name="border1" VerticalAlignment="Top">

                <Grid Background="#F3F3F3">
                    <Expander Header="Więcej" Margin="12,3,12,3" x:Name="expander" >
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition MinWidth="180" Width="auto" />
                                <ColumnDefinition Width="auto" />
                                <ColumnDefinition Width="323*" />
                            </Grid.ColumnDefinitions>
                            <Label Content="Nazwa" Height="28" HorizontalAlignment="Left" Margin="59,0,0,0"
                     x:Name="deviceName" VerticalAlignment="Top" FontStyle="Normal" FontWeight="Normal" FontSize="13" />
                            <Image Height="36" HorizontalAlignment="Left" Margin="6,6,0,0" x:Name="deviceImage"
                     Stretch="Fill" VerticalAlignment="Top" Width="48" />
                            <Label Content="Typ" Height="28" HorizontalAlignment="Left" Margin="59,18,0,0"
                     x:Name="deviceType" VerticalAlignment="Top" FontStyle="Normal" Foreground="#FF797979" FontSize="11" />
                            <Border BorderBrush="Silver" BorderThickness="1" Margin="0,6,0,6"
                      x:Name="scrollviewInfoBoxBorder" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left">
                                <ScrollViewer Height="72" x:Name="scrollviewInfoBox" 
                              BorderBrush="#FF35496A" BorderThickness="1" Background="White">
                                    <Grid>
                                        <Label Content="netInfo" Height="28" x:Name="networkInt1Info" Margin="0,0,0,0"
                           VerticalAlignment="Top" HorizontalAlignment="Right" />
                                        <Label Content="netInfo" Height="28" x:Name="networkInt2Info" Margin="0,16,0,0"
                           VerticalAlignment="Top" HorizontalAlignment="Right" />
                                        <Label Content="netInfo" Height="28" x:Name="networkInt3Info" Margin="0,32,0,0"
                           VerticalAlignment="Top" HorizontalAlignment="Right" />
                                        <Label Content="netInfo" Height="28" x:Name="networkInt4Info" Margin="0,48,0,0"
                           VerticalAlignment="Top" HorizontalAlignment="Right" />
                                        <Label Content="netInfo" Height="28" x:Name="networkInt5Info" Margin="0,64,0,0"
                           VerticalAlignment="Top" HorizontalAlignment="Right" />
                                        <Label Content="netInfo" Height="28" x:Name="networkInt6Info" Margin="0,80,0,0"
                           VerticalAlignment="Top" HorizontalAlignment="Right" />
                                        <Label Content="netInfo" Height="28" x:Name="networkInt7Info" Margin="0,96,0,0"
                           VerticalAlignment="Top" HorizontalAlignment="Right" />
                                        <Label Content="netInfo" Height="28" x:Name="networkInt8Info" Margin="0,112,0,0"
                           VerticalAlignment="Top" HorizontalAlignment="Right" />
                                    </Grid>
                                </ScrollViewer>
                            </Border>
                            <RichTextBox Grid.Column="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"  Margin="6,6,0,6" Height="72" Name="LogRichText" IsReadOnly="True"></RichTextBox>
                        </Grid>
                    </Expander>

                </Grid>
            </Border>

        </Grid>
        <Grid VerticalAlignment="Bottom" Height="26" Background="#F3F3F3">
            <my1:CustomLabel Content="Status" HorizontalAlignment="Left" x:Name="statusLabel"
                       VerticalAlignment="Center" Grid.RowSpan="2" Foreground="Black" Opacity="1" />
            <Slider x:Name="scaleSlider" Width="129" Interval="1" TickPlacement="BottomRight" Minimum="0.2" Maximum="2"
              Value="1" TickFrequency="0.2" ValueChanged="ScaleSliderValueChanged" HorizontalAlignment="Right"
              VerticalAlignment="Bottom" MouseWheel="ScaleSliderMouseWheel" Margin="0,0,25,2" MouseEnter="ButtonHover"
              MouseLeave="ButtonLeave" IsSnapToTickEnabled="True" />
            <Button Margin="0,0,2,2" x:Name="zoomInButton" Height="22" VerticalAlignment="Bottom"
              HorizontalAlignment="Right" Width="22" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="zoomInButton_Click">
                <Image Stretch="Fill" VerticalAlignment="Top"
               Source="/SymulatorEthernetWPF;component/UserInterface/Images/zoomIn_24x24.png" />
            </Button>
            <Button Margin="0,0,154,2" x:Name="zoomOutButton" Height="22" VerticalAlignment="Bottom"
              HorizontalAlignment="Right" Width="22" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="zoomOutButton_Click">
                <Image Stretch="Fill" VerticalAlignment="Top"
               Source="/SymulatorEthernetWPF;component/UserInterface/Images/zoomOut_24x24.png" />
            </Button>

        </Grid>
    </Grid>
</Window>